package service.impl;

import entity.Shoplist;
import mapper.ShoplistMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import service.Shoplistservice;

import javax.annotation.Resource;

@Component
public class Shoplistserviceimpl implements Shoplistservice {
    @Resource
    ShoplistMapper shoplistMapper;
    @Override
    public int deleteByPrimaryKey(Integer id) {

        return shoplistMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Shoplist record) {
        return shoplistMapper.insert(record);
    }

    @Override
    public int insertSelective(Shoplist record) {
        return shoplistMapper.insertSelective(record);
    }

    @Override
    public Shoplist selectByPrimaryKey(Integer id) {
        return shoplistMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Shoplist record) {
        return 0;
    }

    @Override
    public int updateByPrimaryKey(Shoplist record) {
        return 0;
    }
}
